import request from '@/utils/request'
import qs from 'qs'
// 查询【请填写功能名称】列表
export function queryPageList(params) {
  return request({
    url: '/message/m/sysmsg/queryPageList',
    method: 'get',
    params
  })
}

//消息/告警 详情更新状态
export function updateMessageStatus(data) {
  return request({
    url: '/system/notice/updateSysMsgById',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    data: qs.stringify(data)
  })
}

//消息/告警 全部已读
export function updateAllMessageStatus(data) {
  return request({
    url: '/system/notice/updateAllSysMsg',
    method: 'post',
    data
  })
}
